package zhai.docking.alipay.constant;

/**
 * @author Created by 翟凤玺
 * @package zhai.docking.alipay.constant
 * @project-name zhai-docking-alipay
 * @description 支付宝 常量
 * @create-datetime 2020/12/30 11:25
 */
public class AlipayConstant {

    /** 支付宝返回码 */
    public static final String RESULT_SUCCESS_CODE = "ALIPAY-0";
    public static final String RESULT_ERROR_DEF_CODE = "ALIPAY-1";

    /** 支付宝公共参数 */
    public static final String COMMON_SERVER_URL = "https://openapi.alipay.com/gateway.do";
    public static final String COMMON_CHARSET = "utf-8";
    public static final String COMMON_FORMAT = "json";
    public static final String COMMON_SIGN_TYPE = "RSA2";
    public static final String COMMON_MESSAGE_SERVER_URL = "openchannel.alipay.com";

    /** 支付宝公共错误码 */
    public static final String CODE_SUCCESS = "10000";
    public static final String SUB_CODE_SUCCESS = "ACQ.TRADE_HAS_SUCCESS";

    /** IOT如意设备：受理商户的ISV在支付宝的pid */
    public static final String IOT_RUYI_ISV_PID = "自行配置";
    /** IOT如意设备：设备供应商ID 默认值 */
    public static final String IOT_RUYI_DEF_SUPPLIER_ID = "自行配置";
    /** IOT如意设备：app_type */
    public static final String IOT_RUYI_APP_TYPE = "MINI_APP";
    /** IOT如意设备：mini_app_id */
    public static final String IOT_RUYI_MINI_APP_ID = "RUYI_LITE";

    /** 支付宝图片上传日志 */
    public static final String IMAGE_UPLOAD_LOG = "alipay_image_upload_log";
    /** 支付宝IoT设备绑定门店日志 */
    public static final String IOT_BIND_LOG = "alipay_iot_bind_log";
    /** 支付宝新蓝海活动报名创建日志 */
    public static final String BLUE_SEA_CREATE_LOG = "alipay_blue_sea_create_log";
    /** 支付宝新蓝海活动报名修改日志 */
    public static final String BLUE_SEA_MODIFY_LOG = "alipay_blue_sea_modify_log";
    /** 支付宝如意lite绑定日志 */
    public static final String IOT_RUYI_BIND_LOG = "alipay_iot_ruyi_bind_log";
    /** 支付宝如意lite解绑日志 */
    public static final String IOT_RUYI_UNBIND_LOG = "alipay_iot_ruyi_unbind_log";
    /** 支付宝消息日志 */
    public static final String MESSAGE_LOG = "alipay_message_log";

    /** 账户类型 直连：direct；间连：indirect */
    public static final String MERCHANT_TYPE_DIRECT = "direct";
    public static final String MERCHANT_TYPE_INDIRECT = "indirect";

    /** 业务场景 直连餐饮：BLUE_SEA_FOOD_APPLY；间连餐饮：BLUE_SEA_FOOD_INDIRECT_APPLY */
    public static final String BIZ_SCENE_BLUE_SEA_FOOD_APPLY = "BLUE_SEA_FOOD_APPLY";
    public static final String BIZ_SCENE_BLUE_SEA_FOOD_INDIRECT_APPLY = "BLUE_SEA_FOOD_INDIRECT_APPLY";

    /** 可选方式 ID；SN； */
    public static final String DEVICE_ID_TYPE_ID = "ID";
    public static final String DEVICE_ID_TYPE_SN = "SN";

    /** 新蓝海报名状态 NO:未申请 AUDITING:审核中；FAIL:报名失败；PASS:报名成功 */
    public static final String BLUE_SEA_STATUS_NO = "NO";
    public static final String BLUE_SEA_STATUS_AUDITING = "AUDITING";
    public static final String BLUE_SEA_STATUS_FAIL = "FAIL";
    public static final String BLUE_SEA_STATUS_PASS = "PASS";

}